﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entity.Validators;

namespace Entity
{
    /// <summary>
    /// 用户表
    /// </summary>
    public class UserBase : BaseEntity
    {
        public UserBase()
        {
        }
        /// <summary>
        /// 用户名
        /// </summary>
        [Required(MessageType.RequiredField, "UserName")]
        public string UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [Required(MessageType.RequiredField, "Password")]
        public string Password { get; set; }
        /// <summary>
        /// 电子邮件
        /// </summary>
        public string Email { get; set; }


    }

    /// <summary>
    /// 用户模块类
    /// </summary>
    public class UserBase_Ext
    {
        /// <summary>
        /// 用户基础信息表
        /// </summary>
        public UserBase UserBase { get; set; }

        /// <summary>
        /// 用户日志列表
        /// </summary>
        public virtual IEnumerable<User_Diary> User_Diary { get; set; }

        /// <summary>
        /// 用户详细信息
        /// </summary>
        public virtual UserInfo UserInfo { get; set; }
    }
}
